package com.zmx.service;

import com.zmx.utils.RUtils;
import com.zmx.entity.ScheduleJob;

import java.util.List;

/**
 * 定时任务(ScheduleJob)表服务接口
 *
 * @author makejava
 * @since 2020-10-21 09:43:29
 */
public interface ScheduleJobService {

    public RUtils scheduleJobList(int limit, int offset, String search, String order);
    //Scheduler  quartz调度器
    //ScheduleJob  我们自定义的代表一个任务的实体
    public  RUtils  saveScheduleJob(ScheduleJob scheduleJob);

    public   RUtils   scheduleInfo(long id);
    public  RUtils  updateScheduleJob(ScheduleJob scheduleJob);

    public  RUtils  deleteScheduleJob(List<Long> ids);

    public RUtils   pauseScheduleJob(List<Long> ids);

    public  RUtils  resumeScheduleJob(List<Long> ids);

    public RUtils   runOneScheduleJob(List<Long> ids);

}